package com.seo.mapper.user.keywords;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

public interface KeywordsDetailMapper {

	List<Map<String, Object>> getKeywordsDetailList(Map<String, Object> params);
	
	Map<String, Object> getKeywordsById(long keywordsId);
	
	List<Map<String, Object>> getKeywordsUserRelation(long keywordsId);

	@MapKey("keywordsRelationId")
	Map<Long, Map<String, Object>> getKeywordsddByKddRelation(@Param("kddId") Long kddId, @Param("relationId") Long relationId);

	int saveKeywordsddByKdd(Map<String, Object> params);
	
	int updateConsumeDays(long keywordsId);

}
